#!/bin/bash
# @file: 
#	pullall.sh
# @desc:
#	This is a templation
# @Author:
#	codergege
# @Last Update:
#	2016-12-05 
# @usage:
#	 ./pullall.sh

# path
home=/home/codergege
pwdDir=$pwd

#echo "==> pull vimwiki:"
#cd ~
#cd vimwiki
#git pull origin master
#echo "--------------------------------------------"

echo "==> pull note"
cd ~
cd note
git pull origin master
echo "--------------------------------------------"

echo "==> pull .vim:"
cd ~
cd .vim
git pull origin master
echo "--------------------------------------------"

echo "==> pull config:"
cd ~
cd config
git pull origin master
echo "--------------------------------------------"

echo "==> pull script:"
cd ~
cd script
git pull origin master
echo "--------------------------------------------"

echo "==> pull workspace:"
cd ~
cd workspace
git pull origin master
echo "--------------------------------------------"

cd /usr/bin
if [ ! -f "pullall" ]; then
	sudo ln -sf /home/codergege/script/pullall.sh pullall
fi
cd $pwdDir
